package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TS_IndexImage", catalog="Id")
public class TsIndexImage extends BaseEntity<TsIndexImage> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Guid", nameJava="guid", typeDataBase="varchar")
	private String guid;
	@YsField(nameDataBase="ImageUrl", nameJava="imageUrl", typeDataBase="varchar")
	private String imageUrl;
	@YsField(nameDataBase="Iid", nameJava="iid", typeDataBase="int")
	private Integer iid;
	@YsField(nameDataBase="IsOpen", nameJava="isOpen", typeDataBase="varchar")
	private String isOpen;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TsIndexImage setId(Long id) {
		this.id = id;
		return this;
	}
	public String getGuid() {
		return guid;
	}
	public TsIndexImage setGuid(String guid) {
		this.guid = guid;
		return this;
	}
	public String getImageUrl() {
		return imageUrl;
	}
	public TsIndexImage setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
		return this;
	}
	public Integer getIid() {
		return iid;
	}
	public TsIndexImage setIid(Integer iid) {
		this.iid = iid;
		return this;
	}
	public String getIsOpen() {
		return isOpen;
	}
	public TsIndexImage setIsOpen(String isOpen) {
		this.isOpen = isOpen;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TsIndexImage setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TsIndexImage setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TsIndexImage setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TsIndexImage setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TsIndexImage tsIndexImage(
		String guid,
		String imageUrl,
		Integer iid,
		String isOpen,
		String remark,
		Integer status
			) {
		TsIndexImage entity = new TsIndexImage();
		entity.setGuid(guid);
		entity.setImageUrl(imageUrl);
		entity.setIid(iid);
		entity.setIsOpen(isOpen);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}